package ca.eloas.judging.rest.security;

import ca.eloas.judging.model.JudgeObject;

import java.net.URL;

/**
 * @author JP
 */
public interface AuthenticationAuthorizationService {

    boolean isAuthenticated();
    boolean isAdmin();
    SystemUser getUser();

    URL getLogoutURL();
    void authenticate(JudgeObject judge, String password) throws AuthenticationException;
}
